<!doctype html>
<html>
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title></title>
<link href="/css/admin_style.css" rel="stylesheet" />

</head>
<body>
<div class="wrap">
	<div id="error_tips">
		<h2>信息提示</h2>
		<div class="error_cont">
                    <?php if($message): ?>
                            <ul>
                                <li><?php echo($message); ?></li>
                            </ul>
                            <p class="jump">
                            页面自动 <a id="href" href="<?php echo($url); ?>">跳转</a> 等待时间： <b id="wait"><?php echo($waitSecond); ?></b>
                            </p>
                    <?php else: ?>
                            <ul>
                                <li><?php echo($error); ?></li>
                            </ul>
                            <p class="jump">
                            页面自动 <a id="href" href="<?php echo($url); ?>">跳转</a> 等待时间： <b id="wait"><?php echo($waitSecond); ?></b>
                            </p>
                    <?php endif; ?>
			<div class="error_return">
                            <a href="javascript:window.history.go(-1);" class="btn">返回</a></div>
                </div>
	</div>
</div>
    
    
<script type="text/javascript">
(function(){
var wait = document.getElementById('wait'),href = document.getElementById('href').href;
var interval = setInterval(function(){
	var time = --wait.innerHTML;
	if(time <= 0) {
		location.href = href;
		clearInterval(interval);
	};
}, 1000);
})();
</script>
</body>
</html>